package myapps.main;

import java.net.URISyntaxException;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;



public class WebChatMain 
{

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		Server server = new Server(8080);
		WebAppContext webAppContext = new WebAppContext();
		
		webAppContext.setDescriptor("./WebContent/WEB-INF/web.xml");
		
		webAppContext.setResourceBase("./WebContent");
		webAppContext.setContextPath("/chat");
		server.setHandler(webAppContext);
		
		try 
		{
			server.start();
		} 
		catch (Exception e) 
		{
			e.printStackTrace();
		}
	} //end main();
}
